import {uuid} from '@/base/util/Strings';

export function getClientId() {
  const key = 'clientId';
  let value = localStorage.getItem(key);
  if (value !== '' && value !== null) {
    return value;
  } else {
    const newValue = uuid(10);
    localStorage.setItem(key, newValue);
    return newValue;
  }
}
